<?php
class TemplateUser extends CI_Controller
{
	function index()
	{
		$data = array(
			'page'=>'home',
			'dsdmsp'=>$this->mdanhmucsanpham->danhsachdanhmucsanpham(),
			'dsdmdv'=>$this->mdanhmucdichvu->danhsachdanhmucdichvu()
		);
		$this->load->view('templateuser', $data);
	}
	
	function gioithieu()
	{
		$data = array(
			'page'=>'gioithieu'		
		);
		$this->load->view('templateuser', $data);
	}
	
	function lienlac()
	{
		$data = array(
			'page'=>'ContactUs'		
		);
		$this->load->view('templateuser', $data);
	}
	
	function sanpham()
	{
		$data = array(
			'page'=>'sanpham',
			'dssp'=>$this->msanpham->danhsachsanphammoinhat()		
		);
		$this->load->view('templateuser', $data);
	}
	
	function khoalan()
	{
		$data = array(
			'page'=>'khoalan',
			'dskl'=>$this->mkhoalan->danhsachkhoalanmoinhat(),
			'dsgv'=>$this->mgiaovien->danhsachgiaovienlaunhat()
		);
		$this->load->view('templateuser', $data);
	}
	
	function diadiemlan()
	{
		$data = array(
			'page'=>'danhsachdiadiemlan',	
			'dsddl'=>$this->mdiadiemlan->danhsachdiadiemlanmoinhat()
		);
		$this->load->view('templateuser', $data);
	}
	
	function dangky()
	{
		$data = array(
			'page'=>'dangky'		
		);
		$this->load->view('templateuser', $data);
	}
		
	function lienhe()
	{
		$data = array(
			'page'=>'lienhe'		
		);
		$this->load->view('templateuser', $data);
	}
	
	function khoalantheodanhmuc($madm)
	{
		$data = array(
			'page'=>'khoalan',
			'dskl'=>$this->mkhoalan->danhsachkhoalan($madm),
			'dsgv'=>$this->mgiaovien->danhsachgiaovienlaunhat()
		);
		$this->load->view('templateuser', $data);
	}
}
?>